﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="CX_GBook_ShowLyS.aspx.cs" Inherits="aspnet_admin_bock_Gbook_ShowLyS" Title="显示所有留言" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">


    &nbsp;<table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="2" style="height: 30px">
                留言管理</td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" style="height: 27px">
                提示信息:<asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                搜索主题名称:</td>
            <td class="tdbg" style="width: 787px; height: 27px">
                <asp:TextBox ID="Cx_FAQonLine_Question" runat="server" MaxLength="50"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" style="height: 27px">
                <center>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="搜索" />&nbsp;</center>
            </td>
        </tr>
    </table>
    <br />
    <asp:GridView id="GridView1"
    
    
     runat="server" CssClass="border" PageSize="6" CellPadding="3" EmptyDataText="还没有相关数据" Width="100%" AutoGenerateColumns="False" DataKeyNames="CX_Gbook_id" 
 ><Columns>
     <asp:TemplateField HeaderText="编号" InsertVisible="False" SortExpression="CX_Gbook_id">
         <EditItemTemplate>
             <asp:Label ID="Label1" runat="server" Text='<%# Eval("CX_Gbook_id") %>'>
          </asp:Label>
         </EditItemTemplate>
         <ItemStyle CssClass="tdbg" Height="60px" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             <asp:Label ID="Label2" runat="server" Text='<%# Bind("CX_Gbook_id") %>'></asp:Label>
         </ItemTemplate>
     </asp:TemplateField>
     <asp:TemplateField HeaderText="主题" SortExpression="CX_Gbook_Name">
         <EditItemTemplate>
             &nbsp;<asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
         </EditItemTemplate>
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             <asp:Label ID="Label3" runat="server" Text='<%# Bind("CX_Gbook_Name") %>'></asp:Label>
         </ItemTemplate>
     </asp:TemplateField>
     <asp:TemplateField HeaderText="内容">
     
         <EditItemTemplate>
             &nbsp;<asp:Label ID="Label7" runat="server" Text="Label"></asp:Label>
         </EditItemTemplate>
                  <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
         <div class="bb" style="width:250px;"><asp:Label ID="Label5" runat="server" Text='<%# Bind("CX_Gbook_Cont") %>'></asp:Label> </div>
             
         </ItemTemplate>
     </asp:TemplateField>
     <asp:TemplateField HeaderText="时间">
         <EditItemTemplate>
             &nbsp;<asp:Label ID="Label8" runat="server" Text="Label"></asp:Label>
         </EditItemTemplate>
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             <asp:Label ID="Label1"  Text='<%#Eval("CX_Gbook_PublicTime").ToString()%>' runat="server"></asp:Label>
         </ItemTemplate>
     </asp:TemplateField>

     <asp:TemplateField HeaderText="操作">
         <EditItemTemplate>
             <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                 Text="更新"></asp:LinkButton>
             <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                 Text="取消"></asp:LinkButton>
         </EditItemTemplate>
        <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
 
                         
             <a href="CX_GBook_Edit.aspx?id=<%#Eval("CX_Gbook_id") %>">编辑 回复</a> 
            
         
             &nbsp; &nbsp&nbsp; &nbsp&nbsp; &nbsp&nbsp; &nbsp&nbsp; &nbsp
                 <a href="CX_GBook_Del.aspx?id=<%#Eval("CX_Gbook_id") %>">删除</a> 
                     
         </ItemTemplate>
     </asp:TemplateField>
</Columns>
<PagerStyle CssClass="tdbg" HorizontalAlign="Center" Font-Size="9pt" Font-Underline="False"></PagerStyle>
</asp:GridView>	
    <div  id="Div" runat="server" align="center">
    </div>
    
    
    
    
    

    
</asp:Content>